package com.jp.knowledge.activity;

import android.view.ViewGroup;

import com.jp.knowledge.R;
import com.jp.knowledge.comm.SlidingActivity;
import com.jp.knowledge.view.JpApplicationWebView;

/**
 * Created by 528787067@qq.com on 2017/5/9.
 */

public class JpApplicationWebViewTestActivity extends SlidingActivity {
    @Override
    protected int getResourceId() {
        return R.layout.activity_application_webview_test;
    }

    @Override
    protected void init() {
        JpApplicationWebView applicationWebView = JpApplicationWebView.getInstance(mContext);
        if(applicationWebView.getParent() != null)
            ((ViewGroup)applicationWebView.getParent()).removeView(applicationWebView);
        ((ViewGroup)contentView).addView(applicationWebView);
    }
}
